package com.clouds.wms.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.clouds.wms.bean.Cmsmj;
import com.clouds.wms.dao.CmsmjDao;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;

@Service("cmsmjService")
public class CmsmjServiceImpl implements CmsmjService {

	@Resource(name="cmsmjDao")
	private CmsmjDao cmsmjDao;

	@Override
	public Cmsmj getCmsmjByMjaa(String mjaa) throws SysException {
		return cmsmjDao.getCmsmjByMjaa(mjaa);
	}

	

	@Override
	public PagesBean getCmsmjList(String mjaa, String mjab, int mjac, int mjae, int offset, int pageSize) throws SysException {
		return cmsmjDao.getCmsmjList(mjaa, mjab, mjac, mjae, offset, pageSize);
	}

	@Override
	public int saveCmsmj(Cmsmj cmsmj) throws SysException {
		return cmsmjDao.saveCmsmj(cmsmj);
	}

	@Override
	public int updateCmsmj(Cmsmj cmsmj) throws SysException {
		return cmsmjDao.updateCmsmj(cmsmj);
	}

	@Override
	public int deleteCmsmjByMjaa(String mjaa) throws SysException {
		return cmsmjDao.deleteCmsmjByMjaa(mjaa);
	}

	@Override
	public List<Cmsmj> getAllCmsmjList() throws SysException {
		return cmsmjDao.getAllCmsmjList();
	}

	@Override
	public int updateCmsmjStatus(String mjaa, int mjae) throws SysException {
		return cmsmjDao.updateCmsmjStatus(mjaa, mjae);
	}

	@Override
	public List<Cmsmj> getCmsmjListByMjac(int mjac) throws SysException {
		return cmsmjDao.getCmsmjListByMjac(mjac);
	}

}
